<template>
  <h1>{{ $store.state.user.profile  }}</h1>
  <button @click="$store.commit('user/setUser', {nickname:'小马'})">调用user模块里面的改名方法</button>
</template>

<script>
export default {
  setup () {

  }
}
</script>
